package com.free.chat.entity.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.noear.solon.validation.annotation.NotNull;

import java.util.Date;

/**
 * 用户关系表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user_relation")
public class UserRelation {

    @TableId
    private Long id ;

    @NotNull(message = "用户id不能为空")
    private Long userId;

    private Long friendId;

    private Integer relation;

    private Date createTime;
}
